<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-linux;$(NetCoreAppCurrent)-osx;$(NetCoreAppCurrent)-freebsd;$(NetFrameworkMinimum)</TargetFrameworks>
  </PropertyGroup>
  <ItemGroup>
    <Compile Include="AssemblyInfo.cs" />
    <Compile Include="SerialPort\BaseStream.cs" />
    <Compile Include="SerialPort\BaudRate.cs" />
    <Compile Include="SerialPort\BreakState.cs" />
    <Compile Include="SerialPort\BytesToRead.cs" />
    <Compile Include="SerialPort\BytesToSend.cs" />
    <Compile Include="SerialPort\CDHolding.cs" />
    <Compile Include="SerialPort\Close.cs" />
    <Compile Include="SerialPort\ctor.cs" />
    <Compile Include="SerialPort\ctor_IContainer.cs" />
    <Compile Include="SerialPort\ctor_str.cs" />
    <Compile Include="SerialPort\ctor_str_int.cs" />
    <Compile Include="SerialPort\ctor_str_int_parity.cs" />
    <Compile Include="SerialPort\ctor_str_int_parity_int.cs" />
    <Compile Include="SerialPort\ctor_str_int_parity_int_stopbits.cs" />
    <Compile Include="SerialPort\CtsHolding.cs" />
    <Compile Include="SerialPort\DataBits.cs" />
    <Compile Include="SerialPort\DiscardInBuffer.cs" />
    <Compile Include="SerialPort\DiscardInBuffer_Generic.cs" />
    <Compile Include="SerialPort\DiscardNull.cs" />
    <Compile Include="SerialPort\DiscardOutBuffer.cs" />
    <Compile Include="SerialPort\DiscardOutBuffer_Generic.cs" />
    <Compile Include="SerialPort\DsrHolding.cs" />
    <Compile Include="SerialPort\DtrEnable.cs" />
    <Compile Include="SerialPort\Encoding.cs" />
    <Compile Include="SerialPort\ErrorEvent.cs" />
    <Compile Include="SerialPort\Event_Close_Stress.cs" />
    <Compile Include="SerialPort\Event_Generic.cs" />
    <Compile Include="SerialPort\GetPortNames.cs" />
    <Compile Include="SerialPort\Handshake.cs" />
    <Compile Include="SerialPort\IsOpen.cs" />
    <Compile Include="SerialPort\NewLine.cs" />
    <Compile Include="SerialPort\AbortOnError.cs" />
    <Compile Include="SerialPort\Open.cs" />
    <Compile Include="SerialPort\Open_Stress.cs" />
    <Compile Include="SerialPort\Parity.cs" />
    <Compile Include="SerialPort\ParityReplace.cs" />
    <Compile Include="SerialPort\PinChangedEvent.cs" />
    <Compile Include="SerialPort\ReadBufferSize.cs" />
    <Compile Include="SerialPort\ReadByte.cs" />
    <Compile Include="SerialPort\ReadByte_Generic.cs" />
    <Compile Include="SerialPort\ReadChar.cs" />
    <Compile Include="SerialPort\ReadChar_Generic.cs" />
    <Compile Include="SerialPort\ReadExisting.cs" />
    <Compile Include="SerialPort\ReadExisting_Generic.cs" />
    <Compile Include="SerialPort\ReadLine.cs" />
    <Compile Include="SerialPort\ReadLine_Generic.cs" />
    <Compile Include="SerialPort\ReadTimeout.cs" />
    <Compile Include="SerialPort\ReadTo.cs" />
    <Compile Include="SerialPort\ReadTo_Generic.cs" />
    <Compile Include="SerialPort\Read_byte_int_int.cs" />
    <Compile Include="SerialPort\Read_byte_int_int_Generic.cs" />
    <Compile Include="SerialPort\Read_char_int_int.cs" />
    <Compile Include="SerialPort\Read_char_int_int_Generic.cs" />
    <Compile Include="SerialPort\ReceivedBytesThreshold.cs" />
    <Compile Include="SerialPort\ReceivedEvent.cs" />
    <Compile Include="SerialPort\RtsEnable.cs" />
    <Compile Include="SerialPort\SerialPortRegressions.cs" />
    <Compile Include="SerialPort\StopBits.cs" />
    <Compile Include="SerialPort\Stress01.cs" />
    <Compile Include="SerialPort\WriteBufferSize.cs" />
    <Compile Include="SerialPort\WriteLine.cs" />
    <Compile Include="SerialPort\WriteLine_Generic.cs" />
    <Compile Include="SerialPort\WriteTimeout.cs" />
    <Compile Include="SerialPort\Write_byte_int_int.cs" />
    <Compile Include="SerialPort\Write_byte_int_int_Generic.cs" />
    <Compile Include="SerialPort\Write_char_int_int.cs" />
    <Compile Include="SerialPort\Write_char_int_int_Generic.cs" />
    <Compile Include="SerialPort\Write_str.cs" />
    <Compile Include="SerialPort\Write_str_Generic.cs" />
    <Compile Include="SerialStream\BeginRead.cs" />
    <Compile Include="SerialStream\BeginRead_Generic.cs" />
    <Compile Include="SerialStream\BeginWrite.cs" />
    <Compile Include="SerialStream\BeginWrite_Generic.cs" />
    <Compile Include="SerialStream\CanRead.cs" />
    <Compile Include="SerialStream\CanSeek.cs" />
    <Compile Include="SerialStream\CanTimeout.cs" />
    <Compile Include="SerialStream\CanWrite.cs" />
    <Compile Include="SerialStream\Close.cs" />
    <Compile Include="SerialStream\EndRead.cs" />
    <Compile Include="SerialStream\EndWrite.cs" />
    <Compile Include="SerialStream\Flush.cs" />
    <Compile Include="SerialStream\Length.cs" />
    <Compile Include="SerialStream\Position.cs" />
    <Compile Include="SerialStream\ReadByte.cs" />
    <Compile Include="SerialStream\ReadByte_Generic.cs" />
    <Compile Include="SerialStream\ReadTimeout.cs" />
    <Compile Include="SerialStream\Read_byte_int_int.cs" />
    <Compile Include="SerialStream\Read_byte_int_int_Generic.cs" />
    <Compile Include="SerialStream\Seek.cs" />
    <Compile Include="SerialStream\SetLength.cs" />
    <Compile Include="SerialStream\WriteByte.cs" />
    <Compile Include="SerialStream\WriteByte_Generic.cs" />
    <Compile Include="SerialStream\WriteTimeout.cs" />
    <Compile Include="SerialStream\Write_byte_int_int.cs" />
    <Compile Include="SerialStream\Write_byte_int_int_Generic.cs" />
    <Compile Include="Support\FlowControlCapabilities.cs" />
    <Compile Include="Support\LocalMachineSerialInfo.cs" />
    <Compile Include="Support\PortHelper.cs" />
    <Compile Include="Support\SerialPortConnection.cs" />
    <Compile Include="Support\SerialPortProperties.cs" />
    <Compile Include="Support\KnownFailureAttribute.cs" />
    <Compile Include="Support\TCSupport.cs" />
    <Compile Include="Support\PortsTest.cs" />
    <Compile Include="Support\TestEventHandler.cs" />
  </ItemGroup>
  <ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'windows' or '$(TargetFrameworkIdentifier)' == '.NETFramework'">
    <Compile Include="SerialPort\DosDevices.cs" />
    <Compile Include="SerialPort\PortName.cs" />
    <Compile Include="SerialPort\OpenDevices.cs" />
  </ItemGroup>
  <ItemGroup>
    <Folder Include="Legacy\Manual\" />
  </ItemGroup>
  <ItemGroup>
    <ProjectReference Include="..\src\System.IO.Ports.csproj" />
  </ItemGroup>
  <ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
    <ProjectReference Include="$(LibrariesProjectRoot)System.Text.Encoding.CodePages\src\System.Text.Encoding.CodePages.csproj" />
  </ItemGroup>
</Project>
